package com.team5101.order.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.team5101.base.BaseServiceImpl;
import com.team5101.base.IBaseDao;
import com.team5101.entity.TOrderPay;
import com.team5101.mapper.TOrderPayMapper;
import com.team5101.order.api.IOrderPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Service
@Component
public class OrderPayServiceImpl extends BaseServiceImpl<TOrderPay> implements IOrderPayService {

    @Autowired
    private TOrderPayMapper mapper;

    @Override
    public IBaseDao<TOrderPay> getBaseDao() {
        return mapper;
    }

    @Override
    public int deleteByPrimaryKey(Long sId) {
        return mapper.deleteByPrimaryKey(sId);
    }

    @Override
    public int insert(TOrderPay record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(TOrderPay record) {
        return mapper.insertSelective(record);
    }

    @Override
    public TOrderPay selectByPrimaryKey(Long sId) {
        return mapper.selectByPrimaryKey(sId);
    }

    @Override
    public int updateByPrimaryKeySelective(TOrderPay record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TOrderPay record) {
        return mapper.updateByPrimaryKey(record);
    }
}
